﻿/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */


namespace Daidalos.Font
{
    public sealed class Character : Interfaces.Cloneable<Daidalos.Font.Character>
    {

        #region Attributes
        private int x;
        private int y;
        private int width;
        private int height;
        private int xoffset;
        private int yoffset;
        private int leap;
        #endregion

        #region Properties
        public int Leap
        {
            get
            {
                return leap;
            }
            set
            {
                leap = value;
            }
        }
        public int YOffset
        {
            get
            {
                return yoffset;
            }
            set
            {
                yoffset = value;
            }
        }
        public int XOffset
        {
            get
            {
                return xoffset;
            }
            set
            {
                xoffset = value;
            }
        }
        public int Height
        {
            get
            {
                return height;
            }
            set
            {
                height = ( value > 0 ) ? value : 0;
            }
        }
        public int Width
        {
            get
            {
                return width;
            }
            set
            {
                width = ( value > 0 ) ? value : 0;
            }
        }
        public int Y
        {
            get
            {
                return y;
            }
            set
            {
                y = ( value > 0 ) ? value : 0;
            }
        }
        public int X
        {
            get
            {
                return x;
            }
            set
            {
                x = ( value > 0 ) ? value : 0;
            }
        }
        #endregion

        #region Methods
        public Daidalos.Font.Character Clone()
        {
            Character clone = new Character();
            return clone;
        }
        #endregion

    }
}
